package world.liuru.poem.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import world.liuru.poem.entity.Picture;
import world.liuru.poem.service.PictureService;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/picture")
public class PictureController {
    @Resource
    PictureService pictureService;
    @GetMapping("")
    public List<Picture> findAll(){
        return pictureService.findAllPicture();
    }

}
